In. Net 4.0 CTP, the most notable improvement of InterOP is type equivalency, which is also called no Pia. Before introducing how to use this new feature, I think we should start from the history to explore what we actually want to solve and what solutions we used in the past, and the problems with these methods.
In. net, to access COM objects, You need to define a series of hosted interfaces, struct, and class. With the typelibrary, you can use tlbim
Approaching COM Interop-- Talking about PIA
Collation
I am very ashamed. for work reasons, only the second article in the series "approaching COM Interop" has been published so far. This article will introduce the content of PIA (Primary Interop assemblyia) using the strong name tool (sn.exe. I hope you will give me more advice.
1. What is PIA?According to the de
Audi announced before the Frankfurt Motor show that it would launch its own Personal Intelligence assistant Pia, similar to the car version of Siri, in the hope that it could compete with its competitors in the IT industry.Audi says it is better to start with its own digital assistant, the Personal Intelligence assistant PIA (Personal Intelligent Assistant), than it and the US Silicon Valley IT company argu
In vsto, office development always encounters the Office version problem. Different versions may encounter compatibility problems. In the past, we used C ++ to develop word 2000/2003.ProgramTo make a program available in 2000/2003, TLB is imported into the database based on version 2000. Due to the forward compatibility of the Office, the problem can also be solved. Of course, new features cannot be used.
In the hosted environment, Pia is introduced
Today, I wrote a small program to use. Net to operate the Office template file and generate the expected Word file. The development environment runs normally and can be put on another machine, which is not easy to use. The system prompts that com… cannot be found ....
Confirm that the Office is installed on the target machine, and the version is the same as the development environment. The only difference is that vs is not installed on the target machine. refactor the program on the target machi
On the PDC, Misha shneerson and Andrew Whitechapel's session: under the hood: advances in. net Type System. the new feature of InterOP in net 4.0: Type equivalency, which we call no PIA (primary InterOP assembly) internally ). This feature was jointly completed by the VB/C #/InterOP team. It can be said that it was one of the greatest improvements of CLR InterOP in. Net 4.0. In the following blogs, I will introduce why we want to use this feature, how
Recently, the project needs to operate Excel in ASP. NET. There is no problem with encoding, and some problems have been encountered in environment settings. After several days of study, I finally got it done.
Summary:
Environment Settings:
1. Excel
or have access to the Office XP programming documentation for the content described in this article.
This document describes the interfaces and common classes that Office XP provides and how they are used. The content of the document is expressed in Visual Basic programming language, so you need to convert the method and event signatures in your mind. This article describes how to do this transformation, how to prepare COM objects for Office XP, and how to use these COM objects in a C # program
Quick sorting is a grouping algorithm that divides arrays into several parts, including sorting and recursive sorting. Algorithm time complexity O (nlgn ). This is the fastest sorting algorithm. Counting sorting, base sorting, and bucket sorting algorithms are non-Comparative sorting algorithms. Their complexity is O (n ). Quick sorting algorithms must be skillful in selecting pivot points, so it is best to meet immediate requirements.1. Fast Sorting Algorithm:Normal quick sorting1 typedef struc
to do this transformation, how to prepare COM objects for Office XP, and how to use these COM objects in a C # program. Finally, this article provides tips to help you understand why certain actions must be implemented in a specific way. With this information, you should be able to take advantage of other COM servers that use C #.
System Requirements
To run the sample, the following software needs to be installed on the computer:
Microsoft Windows®xp or Microsoft Windows 2000 and related
intermodulation Assembly (PIA)The managed assemblies that are used to interact with Office are called Office Primary intermodulation Assemblies (PIA).PIA = Primary Interop AssembliesTypically, a. NET technology called COM Interop is used to interact with the Office object model, and all Office objects are written in unmanaged code (c, C + +) and provide a COM in
");} virtual void fun2 () {printf ("fun2 \ n ");}}; // The customer only needs to obtain an interfacea pointer pointing to the componentb object to obtain the componentb component service: // the customer who uses the componentb component ://...... Componentb CB; interfacea * Pia = CB; // obtain the interfacea pointer pointing to the componentb object. The following customers can obtain the component service Pia
function declared in the virtual base class, which is exactly consistent with the component implementation interface. For example, if there is an interface interfacea, and componentb needs to implement this interface, it can be described in the C ++ language as follows:
// Interface:Class interfacea{Virtual void fun1 () = 0;Virtual void fun2 () = 0;};// Implement the interfacea component:Class componentb: Public interfacea{Virtual void fun1 (){Printf ("fun1 \ n ");}Virtual void fun2 (){Printf
In a Windows system, use PHP to generate WORD Documents,
Preparations
First, make sure that a typical WAMP environment has been installed and configured in your Windows system. Since Interop is purely a Windows feature, we will build Apache and PHP on the Windows platform. In this example, I used EasyPHP 14.1, which is easy to install and configure.
Next, we will install Microsoft Office. The version is not strictly required. I am using Office2013 Professional Edition, but any Office version aft
A tutorial that uses PHP to generate Word documents under Windows systems,
Preparatory work
First, make sure that a typical WAMP environment is installed and configured on your Windows system. Since interop is purely a feature of Windows, we will build Apache and PHP under the Windows platform. In this example, I used the easyphp 14.1, which is easy to install and configure.
Next, we want to install Microsoft Office. Versions are not strictly required. I am using the Office2013 Pro version, but
Preparatory work
First, make sure that a typical WAMP environment is installed and configured in your Windows system. Because interop is purely a feature of Windows, we will build Apache and PHP under the Windows platform. In this example, I used easyphp 14.1, which is easy to install and configure.
Next, we will install Microsoft Office. Versions are not strictly required. I am using the Office2013 Professional Edition, but any Office version after 2007 should be available.
We then need to m
This article describes how to use PHP to generate word documents in a Windows system. to learn about PHP, you can use this method to train your hands ^. For more information, see
Preparations
First, make sure that a typical WAMP environment has been installed and configured in your Windows system. Since Interop is purely a Windows feature, we will build Apache and PHP on the Windows platform. In this example, I used EasyPHP 14.1, which is easy to install and configure.
Next, we will install Mic
, anyway the dynamic object can indirectly invoke the IDispatch interface via IDynamicObject (I think it should still be through Memberinfo.invoke. Call IDispatch, but temporarily does not have time to verify its implementation) to automatically invoke the corresponding function, and do not need to cast to the corresponding interface call again.
The original is: (Range) Excel. Cells[1, 1]. Value = xxx;
Now you can write: Excel. cells[1,1]. Value = xxx; Call Idynamicobject.setmember ("Value", XXX
Windows Media Player 9.0 is the latest digital media player launched by Microsoft, which has added many practical features in addition to the excellence of Media Player 8.0. However, these features are not the focus of this article, this article is about how to use Media Player to write a own embedded software, and let it have playback Cd,vcd,avi,mp3 and so on.
To write this program you should first familiarize yourself with vb.net, because this program is written using vb.net. To install Window
How to use PHP to generate word documents in Windows
PreparationsFirst, make sure that a typical WAMP environment has been installed and configured in your Windows system. Since Interop is purely a Windows feature, we will build Apache and PHP on the Windows platform. In this example, I used EasyPHP 14.1, which is easy to install and configure.Next, we will install Microsoft Office. The version is not strictly required. I am using Office2013 Professional Edition, but any Office version
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.